package com.core.website.service;

import com.core.website.entity.Organization;
import com.core.website.entity.OrganizationUserCascadeDto;

import java.util.List;

public interface OrganizationService {
    int add(Organization organization);
    int edit(Organization organization);
    int delete(List<String> ids);
    String checkUse(List<String> ids);
    List<Organization> queryAll(Organization organization);
    List<Organization> queryStatistic();
    Organization queryOne(String id);

    /**
     * 级联查询机构用户
     * @param userId
     * @return
     */
    List<OrganizationUserCascadeDto> queryCascadeUser(String userId);
}
